package com.ruisi.weatherreport;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * 
 * @author spring ming
 *
 */

public class LoadingActivity  extends Activity{
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_loading);
		
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				Intent intent = new Intent(getApplicationContext(), MainActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.fade_out, R.anim.fade_in);
			}
		}, 1*1000);
	}

	
	@Override
	public void onBackPressed() {
		super.onBackPressed();
		finish();
	}
}
